package com.hq.fxh.No3_TuiGuang.MyMoBan.Model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author 小谢
 * @ClassName SpaceImageCommon
 * @Description :
 * @Created 2016/11/21 0021
 */
public class SpaceImageCommon implements Parcelable {

    /**
     * name : 业务范围A1
     * des : 描述A11
     * imgs : ["http://imgs.ledianduo.com/app/card/20161118161644636150826045555627.png"]
     */

    private String name;
    private String des;
    private List<String> imgs;

    public SpaceImageCommon() {
    }

    public SpaceImageCommon(String name, String des, List<String> imgs) {
        this.name = name;
        this.des = des;
        this.imgs = imgs;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public List<String> getImgs() {
        return imgs;
    }

    public void setImgs(List<String> imgs) {
        this.imgs = imgs;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.des);
        dest.writeStringList(this.imgs);
    }

    protected SpaceImageCommon(Parcel in) {
        this.name = in.readString();
        this.des = in.readString();
        this.imgs = in.createStringArrayList();
    }

    public static final Creator<SpaceImageCommon> CREATOR = new Creator<SpaceImageCommon>() {
        @Override
        public SpaceImageCommon createFromParcel(Parcel source) {
            return new SpaceImageCommon(source);
        }

        @Override
        public SpaceImageCommon[] newArray(int size) {
            return new SpaceImageCommon[size];
        }
    };
}
